//程序入口
window.main=function($) {
    var time = $.time();
    console.log("时间戳：",time.getTimestamp());
    console.log("年：",time.getYear());
    console.log("月：",time.getMonth());
    console.log("日：",time.getDay());
    console.log("时：",time.getHours());
    console.log("分：",time.getMinutes());
    console.log("秒：",time.getSeconds());
    console.log("毫秒：",time.getMilliseconds());
    console.log("周：",time.getDayOfWeek());
    console.log("周(中文)：",time.getDayOfWeekCn());
    console.log("时间格式化对象：",time.getFormatStyle());
    console.log("时间格式化对象：",time.getFormatStyle("-"));
    var root=$("#root");
    setInterval(() => {
        root.text("当前时间："+$.time().getFormatStyle("-").style4+",时间戳："+$.time().getTimestamp());
    }, 50);
};